using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WozLib.UI.Dialogs
{
  /// <summary>
  /// Interaction logic for TextMessageDialog.xaml
  /// </summary>

  public partial class TextMessageDialog : Window
  {

    string _message;
    string _title;
    string _buttonText;

    public TextMessageDialog() : this("Alert","Alert","OK")
    {
      //InitializeComponent();
    }

    public TextMessageDialog(string message, string title, string buttonText)
    {
      _message = message;
      _title = title;
      _buttonText = buttonText;

      InitializeComponent();

      this.Loaded += new RoutedEventHandler(TextMessageDialog_Loaded);

      this.Title = _title;
      this._MessageTextBlock.Text = _message;
      this._OkButtonTextBlock.Text = _buttonText;
    }

    void TextMessageDialog_Loaded(object sender, RoutedEventArgs e)
    {
      //this.Title = _title;
      //this._MessageTextBlock.Text = _message;
      //this._OkButtonTextBlock.Text = _buttonText;
    }

    public void OkButtonHandler(object o, RoutedEventArgs e)
    {
      Close();
    }

  }
}